<%@ include file="/common/taglibs.jsp" %>
<c:set var="url"><spring:url value="/orders/maintainAtmPayment.html"/></c:set>
<c:set var="goToPreviousPathUrl"><spring:url value="${paymentDto.previousPath}"/></c:set>
<head>
	<title><spring:message code="orders.payment.atm.header"/></title>
	<script type="text/javascript">
	$(function(){
		$("#goToPreviousPath").click(function(){
			location.assign("${goToPreviousPathUrl}");
		});

	});
	</script>
</head>
<p>
	<spring:message code="orders.payment.atm.header"/>
</p>
<form:form commandName="paymentDto" method="post" action="${url}">
	<table>
		<%@ include file="/WEB-INF/pages/orders/maintainPayment.jsp" %>
		<tr>
			<th><label for="transferBankId"><spring:message code="orders.payment.atm.transferBankId"/></label></th>
			<td><form:input id="transferBankId" path="transferBankId" maxlength="3"/>
			<form:errors path="transferBankId" cssClass="fieldError"/></td>
		</tr>
		<tr>
			<th><label for="transferAccountNumber"><spring:message code="orders.payment.atm.transferAccountNumber"/></label></th>
			<td><form:input id="transferAccountNumber" path="transferAccountNumber" maxlength="16"/>
			<form:errors path="transferAccountNumber" cssClass="fieldError"/></td>
		</tr>
		<tr>
			<th><label for="depositBankId"><spring:message code="orders.payment.atm.depositBankId"/></label></th>
			<td><form:input id="depositBankId" path="depositBankId" maxlength="3"/>
			<form:errors path="depositBankId" cssClass="fieldError"/></td>
		</tr>
		<tr>
			<th><label for="depositAccountNumber"><spring:message code="orders.payment.atm.depositAccountNumber"/></label></th>
			<td><form:input id="depositAccountNumber" path="depositAccountNumber" maxlength="16"/>
			<form:errors path="depositAccountNumber" cssClass="fieldError"/></td>
		</tr>
		<tr>
			<td colspan="2">
				<button id="submit" type="submit" class="aButton"><spring:message code="orders.payment.atm.submit"/></button>
				<button id="goToPreviousPath" type="button" class="aButton"><spring:message code="orders.payment.atm.goToPreviousPath"/></button>
			</td>
		</tr>
	</table>
</form:form>